package travel.admin;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import travel.Travel_Information_DAO;
import travel.Travel_Information_VO;

public class Admin_DAO implements Adimin_IDAO {
	Travel_Information_DAO tid = new Travel_Information_DAO();
	@Override//관리자 삽입
	public boolean insertTravel(Travel_Information_VO m) {
		Connection conn = null;
		PreparedStatement pstmt = null;
		boolean result = false;
		
		try{
			conn = tid.openDatabase();
			pstmt = conn.prepareStatement(tid.insertSQL);
			
		}catch(SQLException ex){
			ex.printStackTrace();
		}finally{tid.close(conn, pstmt, null);}
		
		return result;
	}

	@Override
	public boolean updateTravel(Travel_Information_VO m) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean deleteTravel(Travel_Information_VO m) {
		// TODO Auto-generated method stub
		return false;
	}
}
